package cc.ycws.api.controller;

import javax.servlet.http.HttpSession;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;

/**
 * 退出登录
 */
@Controller
@RequestMapping("/ssm/Exit")
public class ExitApi {
    /**
     * 退出系统
     *
     * @param session
     * @return
     */
    @RequestMapping("/ExitSystem")
    public String exit(HttpSession session) {
        session.invalidate();
        System.out.println("退出");
        return "login";
    }
}
